<?php

/**
 * Detalleapuesta filter form base class.
 *
 * @package    prode
 * @subpackage filter
 * @author     Your name here
 */
abstract class BaseDetalleapuestaFormFilter extends BaseFormFilterPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'goles_local'       => new sfWidgetFormFilterInput(),
      'goles_visitante'   => new sfWidgetFormFilterInput(),
    ));

    $this->setValidators(array(
      'goles_local'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'goles_visitante'   => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
    ));

    $this->widgetSchema->setNameFormat('detalleapuesta_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Detalleapuesta';
  }

  public function getFields()
  {
    return array(
      'apuesta_id'        => 'ForeignKey',
      'detallefixture_id' => 'ForeignKey',
      'goles_local'       => 'Number',
      'goles_visitante'   => 'Number',
    );
  }
}
